<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
     <!-- vue实例挂载的容器 -->
     <div id="app">
        <h1>{{msg}}</h1>
        <img :src="imgSrc" alt="" v-bind:width="imgWidth">
     </div>
     <script>
        const vm = new Vue({
            data() {
                return {
                    msg: '王俊凯你好啊！1',
                    imgSrc: 'https://img0.baidu.com/it/u=1827036104,2672258792&fm=253&fmt=auto&app=138&f=JPEG?w=335&h=500',
                    imgWidth: 200
                }
            }
        });
        // vm.$mount(document.getElementById('app'));
        vm.$mount('#app')
     </script>
</body>
</html>